package com.briup.pts.domain.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 日志信息表
 * @TableName base_log
 */
@Data
@Schema(description="日志信息表")
public class Log implements Serializable {
    @Schema(description="编号")
    private Long logId;
    @Schema(description="访问用户账号")
    private String logUsername;
    @Schema(description="访问IP地址")
    private String logHost;
    @Schema(description="访问用户真实姓名")
    private String logRealname;
    @Schema(description="请求的方式")
    private String logRequestMethod;
    @Schema(description="请求的地址")
    private String logRequestUri;
    @Schema(description="请求的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime logTime;
    @Schema(description = "操作的功能说明")
    private String logDescription;
    @Schema(description = "功能操作的结果: 成功或失败")
    private String logResult;
}
